package zl.osimall.common.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    private String id;

    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "GMT:8")
    private LocalDateTime createTime;

    private Integer userId;

    private User user;

    private Integer addrId;

    private Addr addr;


    private Integer status;

    private List<OrderDetail> orderDetails;

}
